-- GENERATED SPELL FOR [Maraudine Khan Advisor] --


function spell0_6070(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(12548,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6070', 8342, 1)
end

function spell1_6070(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_6070', 3000, 1)
end

function Sorts_6070(pUnit, Event)
local choix_sorts_6070 = math.random(0, 1)
if choix_sorts_6070 == 0 then
pUnit:RegisterEvent('spell0_6070', 1, 1)
end
if choix_sorts_6070 == 1 then
pUnit:RegisterEvent('spell1_6070', 1, 1)
end
end

function mob6070_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6070', math.random(1500, 3000), 1)
end

function mob6070_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6070_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6070_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6070, 1, 'mob6070_Action')
RegisterUnitEvent(6070, 2, 'mob6070_Leave')
RegisterUnitEvent(6070, 3, 'mob6070_Kill')
RegisterUnitEvent(6070, 4, 'mob6070_Die')
